﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Windows.Forms;

namespace cs5643.rigidbody
{
    static class Program
    {
        /// <summary>
        /// The main entry point for the application.
        /// </summary>
        [STAThread]
        static void Main(String[] args)
        {
            Application.EnableVisualStyles();
            Application.SetCompatibleTextRenderingDefault(false);

            //try
            //{
                string dynamicFilename = "../../../images/lcp.tga";
                if (args.Length == 1)
                {
                    dynamicFilename = args[0];
                }
                Console.Out.WriteLine("Image = args[0] = " + dynamicFilename);

                bool processCollisions = true;
                RigidImageSimulation sim = new RigidImageSimulation(dynamicFilename, processCollisions);
                sim.start();

            //}
            //catch (Exception e)
            //{
            //    Console.Out.WriteLine("OOPS: " + e + "\n" + e.StackTrace);
            //}

        }
    }
}
